home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: seebs@solutions.solon.com (Peter Seebach)
- Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel
- Subject: Re: Hungarian notation
- Date: 10 Jan 1996 09:15:26 -0600
- Organization: Usenet Fact Police (Undercover)
- Message-ID: <4d0l6e$61u@solutions.solon.com>
- References: <30C40F77.53B5@swsbbs.com> <4cf8hf$8fe@hopi.gate.net> <4cgq30$c0v@weck.brokersys.com> <4cvu68$2jb@macaw.cyberport.com>
- NNTP-Posting-Host: solutions.solon.com
-
- In article <4cvu68$2jb@macaw.cyberport.com>,
- Warren Young <tangent@cyberport.com> wrote:
- >This is one of the reasons HN is useful. By forcing the programmer to
- >visit every place that the variable is used, the programmer has an
- >opportunity to check the semantics of the variable's use. If the type
- >of the variable has changed, chances are that the semantics have
- >changed as well. How many times have you changed a variable's type to
- >fix something, only to break something else?
-
- Never that I can remember. The effective semantics of a value should be a
- function of how it's being used. I am unlikely to change the type in a way
- that invalidates existing use without a significant rewrite involved.
- After all, if the basic way a value is used is changing, you're not changing a
- type, you're changing which value you use - and you should be renaming, not
- just changing a meaningless prefix.
-
- -s
- --
- Peter Seebach - seebs@solon.com - Copyright 1995 Peter Seebach.
- C/Unix proto-wizard -- C/Unix questions? Send mail for help. No, really!
- Using trn? Weird new newsgroup problem? I know the fix! Email me!
- The *other* C FAQ - ftp taniemarie.solon.com /pub/c/afq - Not A Flying Toy
-